import { Button } from "@/components/ui/button"
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"
import { Check, Star } from "lucide-react"

export default function Page() {
  return (
    <div className="min-h-screen">
      {/* Hero Section */}
      <section className="relative px-4 py-20 md:py-32 bg-gradient-to-br from-primary/10 to-primary/5">
        <div className="container mx-auto text-center">
          <h1 className="text-4xl md:text-6xl font-bold tracking-tighter mb-6">Build Something Amazing</h1>
          <p className="text-xl text-muted-foreground mb-8 max-w-2xl mx-auto">
            Create stunning websites with our modern tools and components. Fast, reliable, and beautiful.
          </p>
          <div className="flex gap-4 justify-center">
            <Button size="lg">Get Started</Button>
            <Button size="lg" variant="outline">
              Learn More
            </Button>
          </div>
        </div>
      </section>

      {/* Features Section */}
      <section className="py-20 px-4">
        <div className="container mx-auto">
          <h2 className="text-3xl font-bold text-center mb-12">Why Choose Us</h2>
          <div className="grid md:grid-cols-3 gap-8">
            {features.map((feature, index) => (
              <Card key={index}>
                <CardHeader>
                  <CardTitle>{feature.title}</CardTitle>
                  <CardDescription>{feature.description}</CardDescription>
                </CardHeader>
              </Card>
            ))}
          </div>
        </div>
      </section>

      {/* Pricing Section */}
      <section className="py-20 px-4 bg-secondary/10">
        <div className="container mx-auto">
          <h2 className="text-3xl font-bold text-center mb-12">Simple Pricing</h2>
          <div className="grid md:grid-cols-3 gap-8">
            {pricingPlans.map((plan, index) => (
              <Card key={index} className={index === 1 ? "border-primary" : ""}>
                <CardHeader>
                  <CardTitle>{plan.name}</CardTitle>
                  <CardDescription>{plan.description}</CardDescription>
                  <div className="mt-4">
                    <span className="text-4xl font-bold">${plan.price}</span>
                    <span className="text-muted-foreground">/month</span>
                  </div>
                </CardHeader>
                <CardContent>
                  <ul className="space-y-4">
                    {plan.features.map((feature, i) => (
                      <li key={i} className="flex items-center gap-2">
                        <Check className="w-5 h-5 text-primary" />
                        {feature}
                      </li>
                    ))}
                  </ul>
                </CardContent>
                <CardFooter>
                  <Button className="w-full" variant={index === 1 ? "default" : "outline"}>
                    Get Started
                  </Button>
                </CardFooter>
              </Card>
            ))}
          </div>
        </div>
      </section>

      {/* Testimonials Section */}
      <section className="py-20 px-4">
        <div className="container mx-auto">
          <h2 className="text-3xl font-bold text-center mb-12">What Our Customers Say</h2>
          <div className="grid md:grid-cols-3 gap-8">
            {testimonials.map((testimonial, index) => (
              <Card key={index}>
                <CardHeader>
                  <div className="flex gap-1 mb-4">
                    {[...Array(5)].map((_, i) => (
                      <Star key={i} className="w-5 h-5 fill-primary text-primary" />
                    ))}
                  </div>
                  <CardDescription className="text-lg">{testimonial.content}</CardDescription>
                </CardHeader>
                <CardContent>
                  <div className="flex items-center gap-4">
                    <div className="w-12 h-12 rounded-full bg-secondary" />
                    <div>
                      <p className="font-semibold">{testimonial.name}</p>
                      <p className="text-sm text-muted-foreground">{testimonial.role}</p>
                    </div>
                  </div>
                </CardContent>
              </Card>
            ))}
          </div>
        </div>
      </section>

      {/* Contact Section */}
      <section className="py-20 px-4 bg-primary text-primary-foreground">
        <div className="container mx-auto text-center">
          <h2 className="text-3xl font-bold mb-6">Ready to Get Started?</h2>
          <p className="text-xl mb-8 max-w-2xl mx-auto opacity-90">
            Join thousands of satisfied customers building amazing websites.
          </p>
          <Button size="lg" variant="secondary">
            Contact Us
          </Button>
        </div>
      </section>
    </div>
  )
}

const features = [
  {
    title: "Easy to Use",
    description: "Our intuitive interface makes it simple to create beautiful websites.",
  },
  {
    title: "Fully Responsive",
    description: "Your website will look great on any device, from mobile to desktop.",
  },
  {
    title: "24/7 Support",
    description: "Get help whenever you need it with our dedicated support team.",
  },
]

const pricingPlans = [
  {
    name: "Starter",
    description: "Perfect for small projects",
    price: 29,
    features: ["1 Website", "5GB Storage", "Basic Support", "SSL Certificate"],
  },
  {
    name: "Pro",
    description: "Best for growing businesses",
    price: 79,
    features: ["5 Websites", "20GB Storage", "Priority Support", "SSL Certificate", "Custom Domain"],
  },
  {
    name: "Enterprise",
    description: "For large organizations",
    price: 149,
    features: [
      "Unlimited Websites",
      "100GB Storage",
      "24/7 Support",
      "SSL Certificate",
      "Custom Domain",
      "Advanced Security",
    ],
  },
]

const testimonials = [
  {
    content: "This platform has transformed how we build websites. The components are beautiful and easy to use.",
    name: "Alex Chen",
    role: "Product Designer",
  },
  {
    content: "The best decision we made was switching to this platform. Our productivity has increased significantly.",
    name: "Sarah Johnson",
    role: "CEO",
  },
  {
    content: "Outstanding support and beautiful components. Exactly what we needed for our business.",
    name: "Michael Brown",
    role: "Developer",
  },
]

